using UnityEngine;
using System.Collections;

public class Follow : MonoBehaviour 
{
	public GameObject pivot;
	public float posAdded;
	Vector3 pos;
	
	void Start () 
	{
		pos = transform.position;
	}
	
	void Update () 
	{
		pos.x = pivot.transform.position.x + posAdded;
		gameObject.transform.position = pos;
	}
}
